package main

import (
	"dogapm"
	"proto"
	"skusvc/grpc"
)

func main() {
	// 初始化db，grpc server
	dogapm.Infra.NewInfra(
		dogapm.WithMySql("root:zzzfff0613@tcp(127.0.0.1:3306)/skusvc"),
		dogapm.InfraEnableAPM("127.0.0.1:54317"),
	)
	grpcserver := dogapm.NewGrpcServer(":8081")
	proto.RegisterSkuServiceServer(grpcserver, &grpc.SkuServer{})
	dogapm.EndPoint.Start()
}
